package com.own.business.pay.module.wechat.property;

import com.own.constant.ConstantValue;
import lombok.Data;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.security.PrivateKey;

/**
 * WechatPayProperty
 *
 * @author chenxueli
 * @date 2023-08-17 16:02:20
 */
@Data
@ConfigurationProperties(prefix = WechatPayProperty.PREFIX)
@SpringBootConfiguration
public class WechatPayProperty {

    public static final String PREFIX = ConstantValue.CONFIG_VALUE_CONTENT + "pay.wechat";

    public static PrivateKey PRIVATE_KEY = null;

    /**
     * 微信商户分配给开发者的应用ID
     */
    private String appId;

    /**
     * 微信支付分配的商户号
     */
    private String mchId;

    /**
     * 证书序列号
     */
    private String serialNo;

    /**
     * 回调通知接口
     */
    private String notifyUrl;

    /**
     * 退款回调通知接口
     */
    private String refundNotifyUrl;

    /**
     * APIv3 key
     */
    private String apiKeyV3;

}
